﻿using Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Hejian_PCBA_Test.Procdure
{
    public class Config : NotifyBase
    {
        [XmlElement("电流表串口")]
        public string DM3058EPort { get; set; }

        [XmlElement("继电器串口")]
        public string RelayPort { get; set; }

        [XmlElement("伺服通信串口")]
        public string LC10PPort { get; set; }

        [XmlElement("伺服转速")]
        public int MotorSpeed { get; set; }

        [XmlElement("电阻配置文件路径")]
        public string ConfigRFilePath { get; set; }

        [XmlElement("电压配置文件路径")]
        public string ConfigVFilePath { get; set; }

        [XmlElement("电阻结果文件夹路径")]
        public string OutComeRFilePath { get; set; }

        [XmlElement("电压结果文件夹路径")]
        public string OutComeVFilePath { get; set; }

        [XmlElement("SN码长度")]
        public int SNLength { get; set; }

        [XmlElement("OK数量")]
        public int OKCount { get; set; }

        [XmlElement("NG数量")]
        public int NGCount { get; set; }

        [XmlElement("自动测试")]
        public bool AutoTest { get; set; }

        [XmlElement("仅显示NG")]
        public bool OnlyViewNG { get; set; }

        [XmlElement("测试电阻")]
        public bool TestResistor { get; set; }

        [XmlElement("测试电压")]
        public bool TestVoltage { get; set; }
    }
}